package com.sentrix.auto.printercenter.domain.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.core.activerecord.Model;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Data;

@Data
public class BaseEntity {
    @Id(keyType = KeyType.Generator, value = KeyGenerators.snowFlakeId)
    private Long id;
    @Column(isLogicDelete = true)
    private Long delete_id;

    @Column(onInsertValue ="now()" )
    private Long gmtCreate;
    private String creator;
    @Column(onUpdateValue = "now()")
    private Long gmtModify;
    private String modifier;
}
